namespace DotNetNuke.UI.WebControls
{
    using DotNetNuke.UI.Utilities;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    [StandardModule]
    public sealed class WebControls
    {
        public static void RegisterDNNVariableControl(Control objParent)
        {
            if (((HtmlInputHidden) Globals.FindControlRecursive(objParent.Page, "__dnnVariable")) == null)
            {
                HtmlInputHidden child = new HtmlInputHidden();
                child.ID = "__dnnVariable";
                objParent.Controls.Add(child);
            }
        }
    }
}

